﻿using System;
using Amiable.SDK.Enum;
using Amiable.SDK.EventArgs;
using Amiable.SDK.Interface;

namespace Amiable.Core.BotEvents
{
    public class PrivateEvent:IPluginEvent
    {
        public void Process(AmiableEventArgs _e)
        {
            var e = _e as AmiableMessageEventArgs;
            if (e.RawMessage == "XdXdBotReload")
            {
                XdXd.LoadConfig();
                Console.WriteLine("配置重载成功。");
                e.SendMessage("尝试重载配置中....");
            }
        }

        public AmiableEventType EventType => AmiableEventType.Private;
    }
}